import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { Swipe, SwipeItem } from 'mint-ui';
import Mint from 'mint-ui';
import axios from 'axios'
import moment from 'moment'
import VuePreview from 'vue-preview'


 
// defalut install
Vue.use(VuePreview)

// 设置全局配置
axios.defaults.baseURL='http://www.liulongbin.top:3005'
axios.default.emulateJSON=true
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
Vue.prototype.$axios=axios

Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.use(Mint);
Vue.use(moment)
import './assets/lib/mui/css/mui.min.css'
import './assets/lib/mui/css/icons-extra.css'
import 'mint-ui/lib/style.css'
import store from "./store"

//全局过滤器
Vue.filter('myFilter',(str,pattern="YYYY-MM-DD HH:mm:ss")=>{
  return moment(str).format(pattern)
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
